<?php

/*
 * Object/Profil.php
 */

namespace RHX\Model\Object;

class Profil {

    public $id;
    public $libelle;
    public $site_access;
    public $manager_planning;
    public $manager_data;
    public $employe_planning;
    public $employe_data;
    public $description;

    public function __construct($data = array()) {
	$this->exchangeArray($data);
    }

    public function exchangeArray($data) {
	$this->id		 = isset($data['id']) ? $data['id'] : null;
	$this->libelle		 = isset($data['libelle']) ? $data['libelle'] : '';
	$this->site_access	 = isset($data['site_access']) ? $data['site_access'] : 0;
	$this->manager_planning	 = isset($data['manager_planning']) ? $data['manager_planning'] : 0;
	$this->manager_data	 = isset($data['manager_data']) ? $data['manager_data'] : 0;
	$this->employe_planning	 = isset($data['employe_planning']) ? $data['employe_planning'] : 0;
	$this->employe_data	 = isset($data['employe_data']) ? $data['employe_data'] : 0;
	$this->description	 = isset($data['description']) ? $data['description'] : 0;
    }

    public function getArrayCopy() {
	return get_object_vars($this);
    }

}

?>
